/**
  ******************************************************************************
  * @file    PFC_Control_Layer.h
  * @author  STMicroelectronics
  * @version 1.0.0
  * @date    10-Jun-2022
  * @brief   HW control functions header
  * @details This application example is a Buck PSU converter
  ******************************************************************************
  *
  * Copyright (c) 2022 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file in
  * the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __APP_CONTROL_LAYER_H
#define __APP_CONTROL_LAYER_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "DPC_Miscellaneous.h"

/* Exported types ------------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported variables --------------------------------------------------------*/
/* Exported functions prototypes ---------------------------------------------*/
void SetDelayTime(uint16_t volatile *phCounter_to_set, uint16_t hNew_counter_value);
bool DelayTimeIsElapsed(uint16_t volatile *phCounter_to_check);
void DCDC_GateDriverEnable(void);
void DCDC_GateDriverDisable(void);
void DCDC_PWMOutputEnable(HRTIM_HandleTypeDef * hhrtim);
void DCDC_PWMOutputDisable(HRTIM_HandleTypeDef * hhrtim);

#ifdef __cplusplus
}
#endif

#endif /* __APP_CONTROL_LAYER_H */

